cmake_minimum_required(VERSION 3.0)
 
project(telnet)

include_directories(include)

set(common_source
    source/utils.cpp
    source/finite_state_machine.cpp
    source/fy_crypt.cpp)

set(client_source 
    source/client.cpp 
    ${common_source})

set(server_source
    source/server.cpp 
    ${common_source})

add_executable(client ${client_source})
add_executable(server ${server_source})
add_executable(my_login source/my_login.cpp)

find_package(OpenSSL REQUIRED)
target_link_libraries(client OpenSSL::SSL)
target_link_libraries(server OpenSSL::SSL)